package com.cgwx.mapper;

import com.cgwx.entity.Favorites;
import com.cgwx.entity.File;
import com.cgwx.entity.Folder;

import java.util.List;

public interface FavoritesMapper {
    List<Favorites> getAllFavorites();

    List<Favorites> getFavorites(Favorites favorites);

    boolean deleteFavoritesByAccountAndId(String account, String entityId);

    boolean updateFavoritesName(Favorites favorites);

    boolean updateFavoritesDeleted(Favorites favorites);

    boolean insertFavorites(Favorites favorites);

    List<String> getFolderFavorites(Folder folder, String account);

    List<String> getFileFavorites(File file, String account);
}
